export const formConfig = [
    {
        name: 'nick_name',
        type: 'input',
        placeholder: '用户昵称',
    },
    {
        name: 'scope_id_list',
        type: 'cascader',
        placeholder: '筛选范围',
        options: [],
    },
]

const options = [
    {
        label: '一般',
        value: 1,
    },
    {
        label: '中等',
        value: 2,
    },
    {
        label: '严重',
        value: 3,
    },
    {
        label: '不提示',
        value: 4,
    },
]

export const column = [
    {
        label: '用户id',
        name: 'id',
    },
    {
        label: '用户名',
        name: 'user_name',
    },
    {
        label: '用户昵称',
        name: 'nick_name',
    },
    {
        label: '角色描述',
        name: 'role_id',
        format: () => {},
    },
    {
        title: '操作',
        name: 'action',
        width: '260',
        buttons: [],
    },
]

export const config = [
    {
        name: 'role_id',
        type: 'select_id',
        label: '选择角色',
        required: true,
        options: [],
    },
    {
        name: 'user_name',
        type: 'input',
        placeholder: '请输入用户名',
        required: true,
        label: '用户名',
    },
    {
        name: 'nick_name',
        type: 'input',
        placeholder: '请输入用户昵称',
        required: true,
        label: '用户昵称',
    },
    {
        name: 'password',
        type: 'input',
        placeholder: '请输入密码',
        required: true,
        label: '密码',
    },
    {
        name: 'phonenumber',
        type: 'input',
        placeholder: '请输入手机号',
        label: '手机号',
    },
    {
        name: 'notify',
        type: 'select',
        label: '通知告警',
        required: true,
        split: 2,
        options,
    },
    {
        name: 'speech',
        type: 'select',
        label: '语音告警',
        required: true,
        split: 2,
        options,
    },
    {
        name: 'mail',
        type: 'select',
        label: '服务号告警',
        required: true,
        split: 2,
        options,
    },
    {
        name: 'message',
        type: 'select',
        label: '短信告警',
        required: true,
        split: 2,
        options,
    },
]
